<?php
include_once './config/db_conn.php';
include_once './inc/school_class.php';
include_once './web_inc.php';
include_once './smarty_inc.php';

if(!isset($_GET[cid])){
     echo "<script>window.location.href='city.php';</script>";
}else{
	$city=$_GET[cid];
}

$sql=mysql_query("select * from school where city_id=".intval($city));

while($info=mysql_fetch_array($sql)){
	echo $info[sname];
}